<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #t {
          position: absolute;
          opacity: 0;
        }
        .panel {
          display: none;
          padding: 10px;
          background: #f0f0f0;
          margin-top: 5px;
        }
        
        #t:checked + .panel {
          display: block;
        }
        label[for="t"] {
          cursor: pointer;
          padding: 5px 10px;
          background: #3498db;
          color: white;
          display: inline-block;
          border-radius: 3px;
        }
      </style>
    </head>
    <body>
      <label for="t">点击切换面板</label>
      <input id="t" type="checkbox">
      <div class="panel">这里是受控制的面板内容</div>
      <div class="panel">这个面板不受控制</div>
    </body>
    </html>
    